#ifndef GLFBO_H
#define GLFBO_H

#if defined(__WIN32__)||defined(_MSC_VER)
#	include <windows.h>
#endif

#include <stdlib.h>
#include <stdio.h>
#include <string.h>

#if defined(__APPLE__)
#	include <OpenGL/gl.h>
#	include <OpenGL/glext.h>
#else
#	include <GL/gl.h>
#	include <GL/glext.h>
#endif

#include "extensions.h"

typedef struct rat_fbo
{
	int framebuffer,renderbuffer;
	int texture,format;
} rat_fbo;

#ifdef __cplusplus
extern "C" {
#endif

rat_fbo *rat_fbo_create(unsigned int sizex,unsigned int sizey,int format);
void rat_fbo_destroy(rat_fbo *fbo);

void rat_fbo_bind(rat_fbo *fbo);

#endif

